home *** CD-ROM | disk | FTP | other *** search
/ 9-Digit Zip Code Directory / 9-Digit Zip Code Directory (American Business Information) (ABIZIP-12).ISO / z4src.zip / CLEVENT.HPP < prev    next >
C/C++ Source or Header  |  1993-07-02  |  2KB  |  79 lines

  1. //----------------------------------------------------------------------------
  2. //                            MODULE DESCRIPTION
  3. //
  4. //  Module:    clevent.hpp
  5. //   Title:    C++ Class Libraries
  6. //  Notice:    John M. Weeder
  7. //                 Copyright (c) 1993. All rights reserved.
  8. //             This module contains proprietary information and should be 
  9. //                treated as confidential.
  10. //
  11. //----------------------------------------------------------------------------
  12. //                           MAINTENANCE HISTORY
  13. //
  14. // $Workfile$
  15. // $Revision$
  16. //   $Author$
  17. //     $Date$
  18. //      $Log$    
  19. //
  20. //----------------------------------------------------------------------------
  21. //                             MODULE NARRATIVE
  22. //
  23. //    This module contains code for the class CL_EVENT.
  24. //
  25. //    The code in this module may be written in C++ or C.
  26. //
  27. //    This module is portable to:
  28. //        DOS 3.X+
  29. //        MS Windows 3.X+
  30. //        OS/2 2.X+
  31. //        OS/2 2.0 PM
  32. //
  33. //    The following compilers are supported:
  34. //        MSC 6.0A
  35. //        MSC/C++ 7.0
  36. //        Borland C++ 3.1 for DOS
  37. //        Borland C++ 1.0 for OS/2 2.X
  38. //
  39. //----------------------------------------------------------------------------
  40.  
  41. //----------------------------------------------------------------------------
  42. //    Class CL_EVENT
  43. //----------------------------------------------------------------------------
  44. #define CL_EVENT_PARENT CL_OBJECT
  45. class CLASSTYPE CL_EVENT : public CL_EVENT_PARENT
  46. {
  47. #if OS_OS2
  48.      HEV hev;                                        // Event semaphore handle
  49.     BOOL fCreated;                                // Semaphore successfully created
  50. #endif
  51.  
  52. public:
  53.     FN_M CL_EVENT();
  54.     FN_M CL_EVENT(RCCL_EVENT);
  55.     virtual FN_M ~CL_EVENT();
  56.  
  57.     virtual BOOL FN_M Destroy(BOOL = TRUE);
  58.     virtual BOOL FN_M Initialize(SHORT = CL_INIT_ALL);
  59.     virtual BOOL FN_M IsError() const;
  60.     virtual BOOL FN_M IsValid() const;
  61.     RCCL_EVENT FN_M operator=(RCCL_EVENT);
  62.     BOOL FN_M Post();
  63.     BOOL FN_M Reset();
  64.     virtual BOOL FN_M Retrieve(PCSZ, PCSZ = NULL);
  65.     virtual BOOL FN_M Store(PCSZ, PCSZ = NULL);
  66.     BOOL FN_M Wait(ULONG = -1);
  67.  
  68. #if COMPILE_DEBUG
  69.     static VOID FN_M Print(PCCL_EVENT = NULL, PCSZ = NULL, SIZET = 0);
  70.     static BOOL FN_M Test(SHORT = 0);
  71. #endif
  72.  
  73. protected:
  74. private:
  75. };
  76. //----------------------------------------------------------------------------
  77. //------------------------------- End of File --------------------------------
  78. //----------------------------------------------------------------------------
  79.